#include <iostream>

using namespace std;

int n, m;


bool is_prime(int x)
{
	for (int i = 2; i <= x / i; i ++ )
	{
		if (x % i == 0) return false;
	}
	
	return true;
}

int main()
{
	cin >> n >> m;
	
	bool flag = true;;
	
	for (int i = n; i <= m; i ++ )
	{
		int res = -1;
		for (int j = 1;; j ++ )
		{
			if (i % j == 0 && is_prime(i / j))
			{
				res = i / j;
				break;	
			} 
		}
		
		if (flag) flag = false, cout << res;
		else cout << ',' << res;
		
	}
	
	return 0;
}

